package com.fuhe.chen.vendingmachine.dao;

import com.fuhe.chen.vendingmachine.pojo.Machine;
import com.fuhe.chen.vendingmachine.pojo.RelationshipSupplierMachine;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RelationshipSupplierMachineDao {

    void addRelationship(RelationshipSupplierMachine relationship);

    void deleteRelationship(@Param("id") Integer id);

    List<RelationshipSupplierMachine> findBySupplierId(@Param("supplier_id")String supplier_id);

    RelationshipSupplierMachine findByMachineId(@Param("machine_id") Integer machine_id);

}
